﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IDML.BusinessObject;
using IDML.DataAccess;

namespace IDML.BusinessLogic
{
   public class TestBL
    {
       private TestDAL _testDal;

       public TestBL()
       {
            _testDal = new TestDAL();
       }

       #region PopulateLookups

       public List<TestCategoryBO> PopulateTestCategoryLookup()
       {
           return _testDal.PopulateTestCategoryLookup();
       }

       public List<TestBO> PopulateTestLookup(int testCategoryID)
       {
           return _testDal.PopulateTestLookup(testCategoryID);
       }

       #endregion

       #region Select Statements

       public List<TestStructureBO> GetTestStructure_Listst(TestBO testBO)
       {
           return _testDal.GetTestStructure_Listst(testBO);
       }

       public List<TestFeeStructDetailsBO> GetTestFeeStructure(TestBO testBO)
       {
           return _testDal.GetTestFeeStructure(testBO);
       }

       public List<TestFeeStructDetailsBO> GetTestFeeStructurebyTestID(int testID)
       {
           return _testDal.GetTestFeeStructurebyTestID(testID);
       }

       public List<MasterListDataBO> GetMasterListData(MasterListDataBO masterListDataBO)
       {
           return _testDal. GetMasterListData(masterListDataBO);
       }

       public List<ValidationBO> GetValidationData(ValidationBO validationBo)
       {
           return _testDal.GetValidationData(validationBo);
       }

       #endregion


       #region Insert Statement

       public int PatientTestResult_Insert(PatientTestResultBO patientTestResultBo)
       {
           return _testDal.PatientTestResult_Insert(patientTestResultBo);
       }

       public void TestFeeStructure_Save(TestFeeStructureBO testfeestructBO)
       {
           _testDal.TestFeeStructure_Save(testfeestructBO);
       }

       public int TestStructure_Insert(TestStructureBO testStructure,DataTable dt)
       {
           return _testDal.TestStructure_Insert(testStructure,dt);
       }

       public int TestStructure_Delete(TestStructureBO testStructureBO)
       {
           return _testDal.TestStructure_Delete(testStructureBO);
       }

       public TestStructureBO TestStructure_Select(TestStructureBO testStructureBO)
       {
           return _testDal.TestStructure_Select(testStructureBO);
       }

       public void TestStructure_Update(TestStructureBO testStructure)
       {
           _testDal.TestStructure_Update(testStructure);
       }
       #endregion

    }
}
